package com.karaoke.android.kege.vm

import android.app.Fragment
import android.os.Bundle
import com.karaoke.android.data.domain.DataDictionary
import com.karaoke.android.data.domain.QSong
import com.karaoke.android.kege.fragment.KegeFragments
import universum.studios.android.fragment.manage.FragmentRequest

/**Ø
 * Created by allen on 2017/4/20.
 */

class HotViewModel(f: Fragment) : BaseLanguageViewModel(f)
{
    override fun showSongPage(language: DataDictionary)
    {
        controller.newRequest(KegeFragments.SONG_PAGE).arguments(Bundle().apply {
            putInt("LanguageId", language.id)
            putString("QueryType", QSong.QueryType.QUERY_LANGUAGE.name)
        }).transaction(FragmentRequest.REPLACE)
                .tag("song_page_${language.id}")
                .execute()
    }

}
